﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using myWindowsMediaPlayer.ViewModel;

namespace myWindowsMediaPlayer
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            masterReadChoiceViewModel choiceList;

            InitializeComponent();
            choiceList = new masterReadChoiceViewModel();
            menu1.DataContext = new menuViewModel();
            this.libraryMenu1.movieView1.DataContext = new masterMovieModelView(choiceList);
            this.libraryMenu1.musicView1.DataContext = new masterMusicViewModel(choiceList);
            this.libraryMenu1.pictureView1.DataContext = new masterPictureViewModel(choiceList);
            this.libraryMenu1.playlistBrowser1.DataContext = choiceList;
            this.libraryMenu1.DataContext = choiceList;
            this.playerControl1.DataContext = new playerViewModel(this.libraryMenu1.showMedia);
        }
    }
}
